Test 2 Analyze
Create a class Question that will keep track of the questionNumber and how many times students put a,b,c,d,e as answers and the correct answer. (so it will have fields:
The constructor will take in the question number and the correct answer (as an int).
Have a method addScore(int answer) //answers are marked 1-5 for a-e
Have a method toString that will return this info: question number, correct answer, what percent got it right, and how many people choose each letter. IE
Question 3(d) - 65% a(3) b(3) c(1) d(8) e(0)
Use this code for Test2Analyzes
This is everyone's answers
|